package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.model.dto.BindTeachplanMediaDto;
import com.xuecheng.content.model.dto.SaveTeachplanDto;
import com.xuecheng.content.model.dto.TeachplanDto;
import com.xuecheng.content.model.po.Teachplan;
import com.xuecheng.content.model.po.TeachplanMedia;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author author
 * @since 2024-06-22
 */
public interface ITeachplanService extends IService<Teachplan> {
    /**
     * @description 查询课程计划树型结构
     * @param courseId  课程id
     * @return List<TeachplanDto>
     * @author Mr.M
     * @date 2022/9/9 11:13
     */
    public List<TeachplanDto> findTeachplanTree(long courseId);
    /**
     * @description 保存课程计划
     * @param teachplanDto  课程计划信息
     * @return void
     * @author Huangyao
     * @date 2022/9/9 13:39
     */
    public void saveTeachplan(SaveTeachplanDto teachplanDto);

    /**
     * @description 根据课程id删除课程计划.
     * @param teachplanId 课程id
     */
    void deleteTeachplanById(Long teachplanId);

    /**
     * @description 课程计划排序.
     * @param moveStatus 移动类型
     * @param teachplanId 课程id
     */
    void teachplanMove(String moveStatus,Long teachplanId);
    /**
     * @description 教学计划绑定媒资
     * @param bindTeachplanMediaDto
     * @return com.xuecheng.content.model.po.TeachplanMedia
     * @author Mr.M
     * @date 2022/9/14 22:20
     */
    public TeachplanMedia associationMedia(BindTeachplanMediaDto bindTeachplanMediaDto);

    /**
     * @description 删除教学计划绑定媒资
     * @param teachPlanId
     * @param mediaId
     * @return void
     * @author Huangyao
     * @date 2024/7/16 14:46
     */
    void deleteTeachplanMedia(Long teachPlanId, String mediaId);
}
